package day8;

/**
 * @author oldliu
 * @since 1.0
 */
public class Thread2 {
    public static void main(String[] args) {
        for (int i = 0; i <= 9; i++) {
            Thread t=new Thread(new PrintThread2("线程"+i));
            if(i%3==0)
                t.setPriority(Thread.MIN_PRIORITY);
            else if(i%3==1)
                t.setPriority(Thread.MAX_PRIORITY);
            else
                t.setPriority(Thread.NORM_PRIORITY);
            t.start();
        }
    }
}
